/*    */ package com.zimbra.cs.account.callback;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.util.Log;
/*    */ import com.zimbra.common.util.ZimbraLog;
/*    */ import com.zimbra.cs.account.AttributeCallback;
/*    */ import com.zimbra.cs.account.Entry;
/*    */ import com.zimbra.cs.db.DbPool;
/*    */ import com.zimbra.cs.mailbox.MessageCache;
/*    */ import com.zimbra.cs.store.BlobInputStream;
/*    */ import com.zimbra.cs.store.FileDescriptorCache;
/*    */ import com.zimbra.cs.store.StoreManager;
/*    */ import com.zimbra.cs.util.JMSession;
/*    */ import com.zimbra.cs.util.Zimbra;
/*    */ import java.util.Map;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ServerConfig
/*    */   extends AttributeCallback
/*    */ {
/*    */   public void postModify(CallbackContext context, String attrName, Entry entry)
/*    */   {
/* 42 */     if (!Zimbra.started()) {
/* 43 */       return;
/*    */     }
/*    */     try {
/* 46 */       if ((attrName.equals("zimbraMailUncompressedCacheMaxBytes")) || (attrName.equals("zimbraMailUncompressedCacheMaxFiles")) || (attrName.equals("zimbraMailFileDescriptorCacheSize")))
/*    */       {
/*    */ 
/* 49 */         BlobInputStream.getFileDescriptorCache().loadSettings();
/* 50 */       } else if (attrName.equals("zimbraMailDiskStreamingThreshold")) {
/* 51 */         StoreManager.loadSettings();
/* 52 */       } else if (attrName.equals("zimbraMessageCacheSize")) {
/* 53 */         MessageCache.loadSettings();
/* 54 */       } else if (attrName.equals("zimbraSmtpHostname")) {
/* 55 */         JMSession.resetSmtpHosts();
/* 56 */       } else if (attrName.equals("zimbraDatabaseSlowSqlThreshold")) {
/* 57 */         DbPool.loadSettings();
/*    */       }
/*    */     } catch (ServiceException e) {
/* 60 */       ZimbraLog.account.warn("Unable to update %s.", attrName, e);
/*    */     }
/*    */   }
/*    */   
/*    */   public void preModify(CallbackContext context, String attrName, Object attrValue, Map attrsToModify, Entry entry)
/*    */     throws ServiceException
/*    */   {}
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/callback/ServerConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */